package unilearn.domain;

import java.sql.Timestamp;

/**
 * @author Yin Zhang 5393558
 * @version 0.1, May 10 2008, initial creation.
 */
public class Extension
{
	private long assignmentID = -1;
	private String studentID = null;
	private String extensionName = null;
	private String extensionDescription = null;
	private Timestamp extensionGrantedDate = null;
	private Timestamp extensionFinishedDate = null;
	private String extensionGrantedBy = null;

	/* default constructor */
	public Extension()
	{
	}

	/* default constructor */
	public Extension(long assignmentID, String studentID)
	{
		this.assignmentID = assignmentID;
		this.studentID = studentID;
	}

	public long getAssignmentID()
	{
		return assignmentID;
	}
	
	public String getStudentID()
	{
		return studentID;
	}
	
	public String getExtensionName()
	{
		return extensionName;
	}

	public String getExtensionDescription()
	{
		return extensionDescription;
	}
	
	public Timestamp getExtensionGrantedDate()
	{
		return extensionGrantedDate;
	}

	public Timestamp getExtensionFinishedDate()
	{
		return extensionFinishedDate;
	}

	public String getExtensionGrantedBy()
	{
		return extensionGrantedBy;
	}

	public void setAssignmentID(long assignmentID)
	{
		this.assignmentID = assignmentID;
	}
	
	public void setStudentID(String studentID)
	{
		this.studentID = studentID;
	}

	public void setExtensionName(String extensionName)
	{
		this.extensionName = extensionName;
	}
	
	public void setExtensionDescription(String extensionDescription)
	{
		this.extensionDescription = extensionDescription;
	}	
	
	public void setExtensionGrantedDate(Timestamp extensionGrantedDate)
	{
		this.extensionGrantedDate = extensionGrantedDate;
	}

	public void setExtensionFinishedDate(Timestamp extensionFinishedDate)
	{
		this.extensionFinishedDate = extensionFinishedDate;
	}

	public void setExtensionGrantedBy(String staffID)
	{
		this.extensionGrantedBy = staffID;
	}
}